package com.hondee.fuzzyquery.entity.access.querycondition;

public enum SqlWhereConditionEnum {
	CONTAIN,
	EQUALS,
	GREATER,
	LESS,
	GREATER_EQUALS,
	LESS_EQUALS,
	IS_NULL,
	ISNOT_NULL,
	DATE_EQUAL,
	IN,
	NOT_IN;
	
	public static SqlWhereConditionEnum getEnum(String str){
		if(str.equals("CONTAIN")){
			return CONTAIN;
		}else if(str.equals("EQUALS")){
			return EQUALS;
		}else if(str.equals("GREATER")){
			return GREATER;
		}else if(str.equals("LESS")){
			return LESS;
		}else if(str.equals("GREATER_EQUALS")){
			return GREATER_EQUALS;
		}else if(str.equals("LESS_EQUALS")){
			return LESS_EQUALS;
		}else if(str.equals("IS_NULL")){
			return IS_NULL;
		}else if(str.equals("ISNOT_NULL")){
			return ISNOT_NULL;
		}else if(str.equals("DATE_EQUAL")){
			return DATE_EQUAL;
		}else if(str.equals("IN")){
			return IN;
		}else if(str.equals("NOT_IN")){
			return NOT_IN;
		}
		throw new IllegalArgumentException("No Enum specified for this string");
	}
}
